package com.creator.pangu.core.global;

import com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter;
import org.springframework.boot.autoconfigure.http.HttpMessageConverters;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * @author ljj
 *  全局序列化配置
 */
@Component
public class GlobalConfig {

    @Bean
    public HttpMessageConverters cusHttpMessageConverter(){
        return new HttpMessageConverters(new FastJsonHttpMessageConverter());
    }
}
